<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>流式布局</title>
    <style>
      .container {
        /* 最大宽度 */
        max-width: 1200px;
        /* 最小宽度,低于这个宽度产生水平滚动条 */
        min-width: 576px;
        margin: 0 auto;
      }

      .container .header {
        height: 150px;
        background-color: pink;
      }

      .container .left {
        float: left;
        /* 百分比 */
        width: 50%;
        height: 400px;
        background-color: palegreen;
      }
      .container .right {
        float: right;
        width: 50%;
        height: 400px;
        background-color: paleturquoise;
      }
    </style>
  </head>
  <body>
    <div class="container">
      <div class="header"></div>
      <div class="left"></div>
      <div class="right"></div>
    </div>
  </body>
</html>
